:root {
    --primary-color: #4a90e2;
    --bg-color: #e4e4e9;
    --text-color: #333;
    --bs-icon-size-lg: 1.5rem;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
}

b, p, a, span, div {
    font-family: 'Nunito', sans-serif;
}

.card-title {
    font-size: 22px ;
    font-weight: bold;
}

.form-label{
    font-weight: 600;
}
.clear-logs .bi{
    top: 0 !important;
}
#dt-length-0{
    margin-right: 5px;
}
.offcanvas.offcanvas-end {
    width: 49rem !important;
}
.main-header-title{
    text-transform: capitalize;
}
#orders-list-table th[data-dt-column="3"]{
    min-width: 120px !important;
}

#orders-list-table th[data-dt-column="6"]{
    min-width: 170px !important;
}
#orders-list-table th[data-dt-column="7"]{
    min-width: 200px !important;
}
#orders-list-table th[data-dt-column="8"]{
    min-width: 200px !important;
}
#orders-list-table th[data-dt-column="9"]{
    min-width: 170px !important;
}
#orders-list-table th[data-dt-column="10"]{
    min-width: 170px !important;
}
#orders-list-table th[data-dt-column="11"]{
    min-width: 200px !important;
}
#orders-list-table.order-recovery-dt th[data-dt-column="2"]{
    min-width: 320px !important;
}
#orders-list-table.order-recovery-dt th[data-dt-column="5"]{
    min-width: 170px !important;
}
#orders-list-table.order-recovery-dt th[data-dt-column="6"]{
    min-width: 150px !important;
}
#orders-list-table.order-recovery-dt th[data-dt-column="8"]{
    min-width: 170px !important;
}
#orders-list-table.order-recovery-dt th[data-dt-column="9"]{
    min-width: 220px !important;
}
#Inventory-list-table th[data-dt-column="6"]{
    min-width: 190px !important;
}
#Inventory-list-table th[data-dt-column="4"],#Inventory-list-table th[data-dt-column="5"]{
    min-width: 140px !important;
}
#Inventory-list-table th[data-dt-column="9"]{
    min-width: 160px !important;
}

#products-table th[data-dt-column="2"]{
    min-width: 140px !important;
}
#products-table th[data-dt-column="3"]{
    min-width: 180px !important;
}
.low-stock-table#Inventory-list-table th[data-dt-column="3"]{
    min-width: 145px !important;
}
.low-stock-table#Inventory-list-table th[data-dt-column="5"]{
    min-width: 190px !important;
}
.low-stock-table#Inventory-list-table th[data-dt-column="6"]{
    min-width: 140px !important;
}
.low-stock-table#Inventory-list-table th[data-dt-column="8"]{
    min-width: 205px !important;
}

.activity-logs-table#orders-list-table th[data-dt-column="2"]{
    min-width: 150px !important;
}
.wide-tooltip .tooltip-inner {
    max-width: 750px; /* or any width you want */
    white-space: normal; /* allows wrapping */
    margin-top: 10px;
}
.no-next-tooltip .tooltip-inner {
    max-width: 200px; /* or any width you want */
    white-space: normal; /* allows wrapping */
    margin-top: 10px;
}
.wide-reports-tooltip .tooltip-inner {
    max-width: 300px; /* or any width you want */
    white-space: normal; /* allows wrapping */
    margin-top: 10px;
}

.tooltip.wide-tooltip .tooltip-inner {
    white-space: normal;
    padding: 8px 12px;
}

/* Proper arrow alignment */
.tooltip.wide-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.wide-tooltip.bs-tooltip-top .tooltip-arrow::before {
    margin: 0;
    content: "";
    border-width: 0.4rem;
    border-style: solid;
    position: absolute;
}

/* Position arrow correctly at bottom */
.tooltip.wide-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    top: 0;
    border-color: transparent transparent #000 transparent;
}

/* Position arrow correctly at top */
.tooltip.wide-tooltip.bs-tooltip-top .tooltip-arrow::before {
    bottom: 0;
    border-color: #000 transparent transparent transparent;
}

/* Ensure arrow is attached tightly */
.tooltip.wide-tooltip .tooltip-arrow {
    height: 0.8rem;
    width: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#orders-list-table.order-recovery-dt th[data-dt-column="4"] {
    min-width: 200px !important;
}
.icon-lg {
    block-size: var(--bs-icon-size-lg);
    font-size: var(--bs-icon-size-lg);
    inline-size: var(--bs-icon-size-lg);
}

.table-filter-overlay {
    position: relative;
}

.table-filter-overlay .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 130px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Pagination container */
.dt-paging {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
}

/* Pagination buttons */
.dt-container .dt-layout-row .dt-paging .dt-paging-button {
    padding: 6px 12px;
    background-color: #f1f1f1;
    color: #333;
    /* border: 1px solid #ccc; */
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover */
.dt-paging-button:hover {
    background-color: #e2e6ea;
    color: #000;
}

/* Current page */
.dt-container .dt-layout-row .dt-paging .dt-paging-button.current
/* ,
.dt-container .dt-layout-row .dt-paging .dt-paging-button:hover  */
{
    background-color: #15a362 !important;
    color: #fff !important;
    border-color: #15a362 !important;
    font-weight: bold;
    border-radius: 4px;
}

/* Disabled state */
.dt-paging-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ellipsis */
.dt-paging .ellipsis {
    padding: 6px 10px;
    color: #666;
    font-size: 13px;
}

/* Info text */
.dt-info {
    font-size: 13px;
    color: #666;
    padding-top: 8px;
}

.today-completed-orders-table#orders-list-table th[data-dt-column="5"] {
    min-width: 200px !important;
}
.undelivered-orders-table#orders-list-table th[data-dt-column="2"],
.undelivered-orders-table#orders-list-table th[data-dt-column="4"] {
    min-width: 150px !important;
}
.undelivered-orders-table#orders-list-table th[data-dt-column="3"],
.undelivered-orders-table#orders-list-table th[data-dt-column="5"] {
    min-width: 200px !important;
}
.undelivered-orders-table#orders-list-table th[data-dt-column="5"] {
    min-width: 250px !important;
}
.combo-products-list .product-item{
    margin-bottom: 10px;
}
.combo-products-list .product-item::last-child {
    margin-bottom: 0;
}

.toggle-columns{
    padding: 0 20px;
    margin-bottom: 25px;
}
.toggle-columns a.toggle-vis{
    color: #ffffff;
    background-color: #15a362;
    border-color: #15a362;
}
.toggle-columns a.toggle-vis.hidden{
    color: #15a362;
    background-color: #15a36259;
    border-color: #15a36259;

}
.toggle-columns{
    display: none;
}
.toggle-columns.active{
    display: block;
}
.btn.btn-outline-primary{
    color: #15a362;
    background: rgba(255, 255, 255, 0.60);
    border: 1.5px solid rgba(22, 191, 150, 0.22);
    backdrop-filter: blur(3px) saturate(180%);
    box-shadow: 0 4px 18px 2px rgba(34, 197, 138, 0.06);
}
.btn.btn-outline-secondary{
    color: #5d6778;
    border:1px solid #5d6778;
}
.btn.filter-funnel-btn{
    margin-left: auto;
    display: flex;
    font-size: 19px;
    padding: 0 5px;
}
.filter-funnel-btn i{
    top:0 !important;
}
.btn-print-inv{
    min-width: 120px;
    margin-left: 10px;
}
@media (max-width: 768px) {
    .toggle-columns{
        column-count: 2;
    }
    .toggle-columns a.toggle-vis{
        width: 100%;
        margin-bottom: 10px;
    }
}

.option-card {
    border: 2px solid #d1e3ff;
    border-radius: 12px;
    padding: 12px 16px;
    background: #f9fbff;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
}
.option-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.option-card input[type="checkbox"] {
    display: none;
}
.option-card .check-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.option-card input[type="checkbox"]:checked + .check-circle::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
}
.option-card .content {
    display: flex;
    flex-direction: column;
}
.option-card .content strong {
    font-size: 16px;
    color: #111;
}
.option-card .content span {
    font-size: 14px;
    color: #666;
}
.custom-backdrop {
    backdrop-filter: blur(3px) saturate(180%);
    box-shadow: 0 4px 18px 2px rgba(34, 197, 138, 0.06);
}
.app-content:fullscreen {
    background: rgba(255, 255, 255,0.90);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(34, 197, 138, 0.12);
    height: 100%;
    overflow: auto;
}
